package com.difsonapps.contacttranslator.dto;

public enum TypeEnum {
	PHONE(0), SIM(1);

	private int code;

	private TypeEnum(int code) {
		this.code = code;
	}

	public static TypeEnum getDefault() {
		return TypeEnum.PHONE;
	}

	public int getCode() {
		return code;
	}

	public static TypeEnum get(int code) {
		switch (code) {
		case 0:
			return PHONE;
		case 1:
			return SIM;
		}
		return PHONE;
	}
}
